import request from '@/utils/request'

// 查询购买记录列表
export function listShopjilu(query) {
  return request({
    url: '/system/purchaseRecords/list',
    method: 'get',
    params: query
  })
}

// 查询购买记录详细
export function getShopjilu(purchaseId) {
  return request({
    url: '/system/shopjilu/' + purchaseId,
    method: 'get'
  })
}

// 新增购买记录
export function addShopjilu(data) {
  return request({
    url: '/system/shopjilu',
    method: 'post',
    data: data
  })
}

// 修改购买记录
export function updateShopjilu(data) {
  return request({
    url: '/system/shopjilu',
    method: 'put',
    data: data
  })
}

// 删除购买记录
export function delShopjilu(purchaseId) {
  return request({
    url: '/system/shopjilu/' + purchaseId,
    method: 'delete'
  })
}
